Release 10.1A: OpenEdge Data Management:
Database Administration
OpenEdge Structure Add Online utility
Use the Structure Add Online (PROSTRCT ADDONLINE) utility to add storage areas and extents to an existing database while it is online. PROSTRCT ADDONLINE allows a database administrator to add data areas and extents, before-image areas and extents, and after-image areas and extents without incurring downtime.
PROSTRCT ADDONLINE has the following restrictions:
- If your database has after-imaging enabled, you cannot add new data areas. You may only add new extents to existing data areas, or additional after-image areas.
- You may not have more than one instance of PROSTRCT ADDONLINE executing at a single time.
- All connected users must have sufficient privileges to access the newly created extents. If currently connected users will not have sufficient privileges to access the new extents, you may begin the ADDONLINE, but the users must be disconnected before the ADDONLINE can complete.
PROSTRCT ADDONLINE follows this general procedure:
- Check status of all connected users. If any connected users do not have sufficient privileges to access the new extents, you are informed of the users and the risks with proceeding. You are prompted to continue.
Answer Y to continue the ADDONLINE. Answer N to abort.
- Create the physical files associated with the extents. This is the longest step, but requires no locks so connected users are not impacted.
- Re-check the status of all connected users. You are prompted as follows:
Usr Name Type Pid
01 usr1 Usr 1234
102 usr2 Usr 5678
...
There exist connections to the database which will have
problems opening newly added extents.Answer Y to proceed to recheck. Answer N to abort ADDONLINE.
If you answer Y, ADDONLINE will loop, performing the privilege check, and prompting you to continue as long as there are under-privileged users connected.
If any under-privileged users are connected, ADDONLINE cannot proceed. You must disconnect the users with PROSHUT, wait for them to disconnect, or cancel the ADDONLINE process.
- Acquire the area admin lock.
- If adding an extent to an existing data area, convert the current variable-length extent to a fixed length extent.
- Add the new extent and size information to the area in the database control area.
- Release the area admin lock.
If ADDONLINE fails, the newly created files are deleted.
![]()
To add storage areas to an existing database using PROSTRCT ADDONLINE:
- Create a new structure description file that contains only information about the areas you want to add. For example:
Note: To avoid overwriting the
.stfile for your existing database, the name of this.stfile must be different from the existing.stfile for the database. For example, name the new structure description fileadd.st.- Validate your structure definition file.
Adding the
-validateparameter directs PROSTRCT to check the syntax and contents of your.stfile, without performing the add. For complete information on the use of the-validateparameter, see the "Validating structure description files" section.- Add the new areas and extents. Use the PROSTRCT Utility with the ADDONLINE qualifier, specifying the
.stfile you created in Step 1. For example:
- PROSTRCT ADDONLINE adds the new extents or storage areas and extents to the existing database control area, and outputs descriptive information such as:
- Generate an update structure definition file for your database.
After you modify the structure of your database (adding or removing extents), run PROSTRCT LIST. PROSTRCT LIST automatically creates a structure description file for your database if one does not exist, or overwrites an existing
.stfile of the same name to reflect the changes you just made to the structure of your database.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |